package com.ruoyi.bookkeeping.domain.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 收支对象 book_asset
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
@Data
@ApiModel(value = "GetBookAssetParam",description = "获取收支对象传参实体类")
public class GetBookAssetParam
{
    @NotNull
    @ApiModelProperty(value = "当前第几页", required = true)
    private Integer pageNum;

    @NotNull
    @ApiModelProperty(value = "每页多少条", required = true)
    private Integer pageSize;

    @ApiModelProperty("分类id")
    private Long sortId;

    @ApiModelProperty("收入类型 （0支出，1收入）")
    private String assetType;

    @ApiModelProperty("账单类型 （0支付宝，1微信，2银行卡）")
    private String billingType;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty("按月查询")
    @JsonFormat(pattern = "yyyy-MM")
    private Date monthTime;

}
